/// aboveLimitStatus : null
/// aboveMoney : null
/// actualMoney : 0
/// balMoney : null
/// branchId : 9052
/// breakfastLimitMoney : null
/// cardNo : null
/// cardType : null
/// content : null
/// createdBy : "5"
/// createdByName : "超级管理员"
/// createdDate : "2023-11-19 09:54:19"
/// dinnerLimitMoney : null
/// discount : null
/// discountMoney : 0
/// elderHumanId : 13133
/// elderHumanName : "孙金德"
/// elderHumanRoom : "1号楼4F14031403-2"
/// goodsList : [{"branchId":9052,"createdBy":"5","createdDate":"2023-11-19 09:54:19","goodsId":1184,"id":716835,"imgAttachId":null,"isDel":0,"isPackage":0,"money":0,"name":"软米饭","num":1,"orderCode":"SC0000553004","orderId":553005,"packageDetail":null,"price":0,"remark":"","saasId":1000,"status":0,"tenantId":1000,"updatedBy":"5","updatedDate":"2023-11-19 09:54:19"},{"branchId":9052,"createdBy":"5","createdDate":"2023-11-19 09:54:19","goodsId":1265,"id":716834,"imgAttachId":null,"isDel":0,"isPackage":0,"money":0,"name":"香蕉","num":1,"orderCode":"SC0000553004","orderId":553005,"packageDetail":null,"price":0,"remark":"","saasId":1000,"status":0,"tenantId":1000,"updatedBy":"5","updatedDate":"2023-11-19 09:54:19"},{"branchId":9052,"createdBy":"5","createdDate":"2023-11-19 09:54:19","goodsId":4548,"id":716833,"imgAttachId":null,"isDel":0,"isPackage":1,"money":0,"name":"9.24午餐B（900）","num":1,"orderCode":"SC0000553004","orderId":553005,"packageDetail":"笋干冬瓜,炒豆芽,蘑菇白菜里脊,卤鸭腿","price":0,"remark":"","saasId":1000,"status":0,"tenantId":1000,"updatedBy":"5","updatedDate":"2023-11-19 09:54:19"}]
/// id : 553005
/// isDel : 0
/// isOnlyPay : 0
/// isWeek : 1
/// lunchLimitMoney : null
/// menuId : null
/// needPay : 0
/// orderCode : "SC0000553004"
/// orderDate : "2023-11-19 00:00:00"
/// orderModelType : 4
/// orderModelTypeName : "周点餐"
/// orderStatusRemark : 0
/// orderType : null
/// orderTypeName : null
/// originalId : null
/// originalOrderCode : null
/// packFee : null
/// parentOrderCode : null
/// payment : 1
/// remark : ""
/// saasId : 1000
/// siteId : 9
/// siteName : "周菜单场所"
/// status : 1
/// statusName : "已支付"
/// takeDate : null
/// takeStatus : null
/// tenantId : 1000
/// totalMoney : 0
/// type : null
/// updatedBy : "5"
/// updatedDate : "2023-11-19 09:54:19"
/// useAddr : "周菜单场所"
/// useDate : "2023-11-19 00:00:00"
/// useNum : 1
/// useTimeRange : null
/// useTimeSection : 2
/// useTimeSectionName : "午餐"
/// useType : null
/// useTypeName : null
/// weekDay : null

class OrderDetailData {
  OrderDetailData({
      this.aboveLimitStatus, 
      this.aboveMoney, 
      this.actualMoney, 
      this.balMoney, 
      this.branchId, 
      this.breakfastLimitMoney, 
      this.cardNo, 
      this.cardType, 
      this.content, 
      this.createdBy, 
      this.createdByName, 
      this.createdDate, 
      this.dinnerLimitMoney, 
      this.discount, 
      this.discountMoney, 
      this.elderHumanId, 
      this.elderHumanName, 
      this.elderHumanRoom, 
      this.goodsList, 
      this.id, 
      this.isDel, 
      this.isOnlyPay, 
      this.isWeek, 
      this.lunchLimitMoney, 
      this.menuId, 
      this.needPay, 
      this.orderCode, 
      this.orderDate, 
      this.orderModelType, 
      this.orderModelTypeName, 
      this.orderStatusRemark, 
      this.orderType, 
      this.orderTypeName, 
      this.originalId, 
      this.originalOrderCode, 
      this.packFee, 
      this.parentOrderCode, 
      this.payment, 
      this.remark, 
      this.saasId, 
      this.siteId, 
      this.siteName, 
      this.status, 
      this.statusName, 
      this.takeDate, 
      this.takeStatus, 
      this.tenantId, 
      this.totalMoney, 
      this.type, 
      this.updatedBy, 
      this.updatedDate, 
      this.useAddr, 
      this.useDate, 
      this.useNum, 
      this.useTimeRange, 
      this.useTimeSection, 
      this.useTimeSectionName, 
      this.useType, 
      this.useTypeName, 
      this.weekDay,});

  OrderDetailData.fromJson(dynamic json) {
    aboveLimitStatus = json['aboveLimitStatus'];
    aboveMoney = json['aboveMoney'];
    actualMoney = json['actualMoney'];
    balMoney = json['balMoney'];
    branchId = json['branchId'];
    breakfastLimitMoney = json['breakfastLimitMoney'];
    cardNo = json['cardNo'];
    cardType = json['cardType'];
    content = json['content'];
    createdBy = json['createdBy'];
    createdByName = json['createdByName'];
    createdDate = json['createdDate'];
    dinnerLimitMoney = json['dinnerLimitMoney'];
    discount = json['discount'];
    discountMoney = json['discountMoney'];
    elderHumanId = json['elderHumanId'];
    elderHumanName = json['elderHumanName'];
    elderHumanRoom = json['elderHumanRoom'];
    if (json['goodsList'] != null) {
      goodsList = [];
      json['goodsList'].forEach((v) {
        goodsList?.add(OrderedGoodsList.fromJson(v));
      });
    }
    id = json['id'];
    isDel = json['isDel'];
    isOnlyPay = json['isOnlyPay'];
    isWeek = json['isWeek'];
    lunchLimitMoney = json['lunchLimitMoney'];
    menuId = json['menuId'];
    needPay = json['needPay'];
    orderCode = json['orderCode'];
    orderDate = json['orderDate'];
    orderModelType = json['orderModelType'];
    orderModelTypeName = json['orderModelTypeName'];
    orderStatusRemark = json['orderStatusRemark'];
    orderType = json['orderType'];
    orderTypeName = json['orderTypeName'];
    originalId = json['originalId'];
    originalOrderCode = json['originalOrderCode'];
    packFee = json['packFee'];
    parentOrderCode = json['parentOrderCode'];
    payment = json['payment'];
    remark = json['remark'];
    saasId = json['saasId'];
    siteId = json['siteId'];
    siteName = json['siteName'];
    status = json['status'];
    statusName = json['statusName'];
    takeDate = json['takeDate'];
    takeStatus = json['takeStatus'];
    tenantId = json['tenantId'];
    totalMoney = json['totalMoney'];
    type = json['type'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
    useAddr = json['useAddr'];
    useDate = json['useDate'];
    useNum = json['useNum'];
    useTimeRange = json['useTimeRange'];
    useTimeSection = json['useTimeSection'];
    useTimeSectionName = json['useTimeSectionName'];
    useType = json['useType'];
    useTypeName = json['useTypeName'];
    weekDay = json['weekDay'];
  }
  dynamic aboveLimitStatus;
  dynamic aboveMoney;
  num? actualMoney;
  dynamic balMoney;
  num? branchId;
  dynamic breakfastLimitMoney;
  dynamic cardNo;
  dynamic cardType;
  dynamic content;
  String? createdBy;
  String? createdByName;
  String? createdDate;
  dynamic dinnerLimitMoney;
  dynamic discount;
  num? discountMoney;
  num? elderHumanId;
  String? elderHumanName;
  String? elderHumanRoom;
  List<OrderedGoodsList>? goodsList;
  num? id;
  num? isDel;
  num? isOnlyPay;
  num? isWeek;
  dynamic lunchLimitMoney;
  dynamic menuId;
  num? needPay;
  String? orderCode;
  String? orderDate;
  num? orderModelType;
  String? orderModelTypeName;
  num? orderStatusRemark;
  dynamic orderType;
  dynamic orderTypeName;
  dynamic originalId;
  dynamic originalOrderCode;
  dynamic packFee;
  dynamic parentOrderCode;
  num? payment;
  String? remark;
  num? saasId;
  num? siteId;
  String? siteName;
  num? status;
  String? statusName;
  dynamic takeDate;
  dynamic takeStatus;
  num? tenantId;
  num? totalMoney;
  dynamic type;
  String? updatedBy;
  String? updatedDate;
  String? useAddr;
  String? useDate;
  num? useNum;
  dynamic useTimeRange;
  num? useTimeSection;
  String? useTimeSectionName;
  dynamic useType;
  dynamic useTypeName;
  dynamic weekDay;
OrderDetailData copyWith({  dynamic aboveLimitStatus,
  dynamic aboveMoney,
  num? actualMoney,
  dynamic balMoney,
  num? branchId,
  dynamic breakfastLimitMoney,
  dynamic cardNo,
  dynamic cardType,
  dynamic content,
  String? createdBy,
  String? createdByName,
  String? createdDate,
  dynamic dinnerLimitMoney,
  dynamic discount,
  num? discountMoney,
  num? elderHumanId,
  String? elderHumanName,
  String? elderHumanRoom,
  List<OrderedGoodsList>? goodsList,
  num? id,
  num? isDel,
  num? isOnlyPay,
  num? isWeek,
  dynamic lunchLimitMoney,
  dynamic menuId,
  num? needPay,
  String? orderCode,
  String? orderDate,
  num? orderModelType,
  String? orderModelTypeName,
  num? orderStatusRemark,
  dynamic orderType,
  dynamic orderTypeName,
  dynamic originalId,
  dynamic originalOrderCode,
  dynamic packFee,
  dynamic parentOrderCode,
  num? payment,
  String? remark,
  num? saasId,
  num? siteId,
  String? siteName,
  num? status,
  String? statusName,
  dynamic takeDate,
  dynamic takeStatus,
  num? tenantId,
  num? totalMoney,
  dynamic type,
  String? updatedBy,
  String? updatedDate,
  String? useAddr,
  String? useDate,
  num? useNum,
  dynamic useTimeRange,
  num? useTimeSection,
  String? useTimeSectionName,
  dynamic useType,
  dynamic useTypeName,
  dynamic weekDay,
}) => OrderDetailData(  aboveLimitStatus: aboveLimitStatus ?? this.aboveLimitStatus,
  aboveMoney: aboveMoney ?? this.aboveMoney,
  actualMoney: actualMoney ?? this.actualMoney,
  balMoney: balMoney ?? this.balMoney,
  branchId: branchId ?? this.branchId,
  breakfastLimitMoney: breakfastLimitMoney ?? this.breakfastLimitMoney,
  cardNo: cardNo ?? this.cardNo,
  cardType: cardType ?? this.cardType,
  content: content ?? this.content,
  createdBy: createdBy ?? this.createdBy,
  createdByName: createdByName ?? this.createdByName,
  createdDate: createdDate ?? this.createdDate,
  dinnerLimitMoney: dinnerLimitMoney ?? this.dinnerLimitMoney,
  discount: discount ?? this.discount,
  discountMoney: discountMoney ?? this.discountMoney,
  elderHumanId: elderHumanId ?? this.elderHumanId,
  elderHumanName: elderHumanName ?? this.elderHumanName,
  elderHumanRoom: elderHumanRoom ?? this.elderHumanRoom,
  goodsList: goodsList ?? this.goodsList,
  id: id ?? this.id,
  isDel: isDel ?? this.isDel,
  isOnlyPay: isOnlyPay ?? this.isOnlyPay,
  isWeek: isWeek ?? this.isWeek,
  lunchLimitMoney: lunchLimitMoney ?? this.lunchLimitMoney,
  menuId: menuId ?? this.menuId,
  needPay: needPay ?? this.needPay,
  orderCode: orderCode ?? this.orderCode,
  orderDate: orderDate ?? this.orderDate,
  orderModelType: orderModelType ?? this.orderModelType,
  orderModelTypeName: orderModelTypeName ?? this.orderModelTypeName,
  orderStatusRemark: orderStatusRemark ?? this.orderStatusRemark,
  orderType: orderType ?? this.orderType,
  orderTypeName: orderTypeName ?? this.orderTypeName,
  originalId: originalId ?? this.originalId,
  originalOrderCode: originalOrderCode ?? this.originalOrderCode,
  packFee: packFee ?? this.packFee,
  parentOrderCode: parentOrderCode ?? this.parentOrderCode,
  payment: payment ?? this.payment,
  remark: remark ?? this.remark,
  saasId: saasId ?? this.saasId,
  siteId: siteId ?? this.siteId,
  siteName: siteName ?? this.siteName,
  status: status ?? this.status,
  statusName: statusName ?? this.statusName,
  takeDate: takeDate ?? this.takeDate,
  takeStatus: takeStatus ?? this.takeStatus,
  tenantId: tenantId ?? this.tenantId,
  totalMoney: totalMoney ?? this.totalMoney,
  type: type ?? this.type,
  updatedBy: updatedBy ?? this.updatedBy,
  updatedDate: updatedDate ?? this.updatedDate,
  useAddr: useAddr ?? this.useAddr,
  useDate: useDate ?? this.useDate,
  useNum: useNum ?? this.useNum,
  useTimeRange: useTimeRange ?? this.useTimeRange,
  useTimeSection: useTimeSection ?? this.useTimeSection,
  useTimeSectionName: useTimeSectionName ?? this.useTimeSectionName,
  useType: useType ?? this.useType,
  useTypeName: useTypeName ?? this.useTypeName,
  weekDay: weekDay ?? this.weekDay,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['aboveLimitStatus'] = aboveLimitStatus;
    map['aboveMoney'] = aboveMoney;
    map['actualMoney'] = actualMoney;
    map['balMoney'] = balMoney;
    map['branchId'] = branchId;
    map['breakfastLimitMoney'] = breakfastLimitMoney;
    map['cardNo'] = cardNo;
    map['cardType'] = cardType;
    map['content'] = content;
    map['createdBy'] = createdBy;
    map['createdByName'] = createdByName;
    map['createdDate'] = createdDate;
    map['dinnerLimitMoney'] = dinnerLimitMoney;
    map['discount'] = discount;
    map['discountMoney'] = discountMoney;
    map['elderHumanId'] = elderHumanId;
    map['elderHumanName'] = elderHumanName;
    map['elderHumanRoom'] = elderHumanRoom;
    if (goodsList != null) {
      map['goodsList'] = goodsList?.map((v) => v.toJson()).toList();
    }
    map['id'] = id;
    map['isDel'] = isDel;
    map['isOnlyPay'] = isOnlyPay;
    map['isWeek'] = isWeek;
    map['lunchLimitMoney'] = lunchLimitMoney;
    map['menuId'] = menuId;
    map['needPay'] = needPay;
    map['orderCode'] = orderCode;
    map['orderDate'] = orderDate;
    map['orderModelType'] = orderModelType;
    map['orderModelTypeName'] = orderModelTypeName;
    map['orderStatusRemark'] = orderStatusRemark;
    map['orderType'] = orderType;
    map['orderTypeName'] = orderTypeName;
    map['originalId'] = originalId;
    map['originalOrderCode'] = originalOrderCode;
    map['packFee'] = packFee;
    map['parentOrderCode'] = parentOrderCode;
    map['payment'] = payment;
    map['remark'] = remark;
    map['saasId'] = saasId;
    map['siteId'] = siteId;
    map['siteName'] = siteName;
    map['status'] = status;
    map['statusName'] = statusName;
    map['takeDate'] = takeDate;
    map['takeStatus'] = takeStatus;
    map['tenantId'] = tenantId;
    map['totalMoney'] = totalMoney;
    map['type'] = type;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    map['useAddr'] = useAddr;
    map['useDate'] = useDate;
    map['useNum'] = useNum;
    map['useTimeRange'] = useTimeRange;
    map['useTimeSection'] = useTimeSection;
    map['useTimeSectionName'] = useTimeSectionName;
    map['useType'] = useType;
    map['useTypeName'] = useTypeName;
    map['weekDay'] = weekDay;
    return map;
  }

}

/// branchId : 9052
/// createdBy : "5"
/// createdDate : "2023-11-19 09:54:19"
/// goodsId : 1184
/// id : 716835
/// imgAttachId : null
/// isDel : 0
/// isPackage : 0
/// money : 0
/// name : "软米饭"
/// num : 1
/// orderCode : "SC0000553004"
/// orderId : 553005
/// packageDetail : null
/// price : 0
/// remark : ""
/// saasId : 1000
/// status : 0
/// tenantId : 1000
/// updatedBy : "5"
/// updatedDate : "2023-11-19 09:54:19"

class OrderedGoodsList {
  OrderedGoodsList({
      this.branchId, 
      this.createdBy, 
      this.createdDate, 
      this.goodsId, 
      this.id, 
      this.imgAttachId, 
      this.isDel, 
      this.isPackage, 
      this.money, 
      this.name, 
      this.number,
      this.orderCode, 
      this.orderId, 
      this.packageDetail, 
      this.price, 
      this.remark, 
      this.saasId, 
      this.status, 
      this.tenantId, 
      this.updatedBy, 
      this.updatedDate,});

  OrderedGoodsList.fromJson(dynamic json) {
    branchId = json['branchId'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    goodsId = json['goodsId'];
    id = json['id'];
    imgAttachId = json['imgAttachId'];
    isDel = json['isDel'];
    isPackage = json['isPackage'];
    money = json['money'];
    name = json['name'];
    number = json['num'];
    orderCode = json['orderCode'];
    orderId = json['orderId'];
    packageDetail = json['packageDetail'];
    price = json['price'];
    remark = json['remark'];
    saasId = json['saasId'];
    status = json['status'];
    tenantId = json['tenantId'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
  }
  num? branchId;
  String? createdBy;
  String? createdDate;
  num? goodsId;
  num? id;
  dynamic imgAttachId;
  num? isDel;
  num? isPackage;
  num? money;
  String? name;
  num? number;
  String? orderCode;
  num? orderId;
  dynamic packageDetail;
  num? price;
  String? remark;
  num? saasId;
  num? status;
  num? tenantId;
  String? updatedBy;
  String? updatedDate;
OrderedGoodsList copyWith({  num? branchId,
  String? createdBy,
  String? createdDate,
  num? goodsId,
  num? id,
  dynamic imgAttachId,
  num? isDel,
  num? isPackage,
  num? money,
  String? name,
  num? number,
  String? orderCode,
  num? orderId,
  dynamic packageDetail,
  num? price,
  String? remark,
  num? saasId,
  num? status,
  num? tenantId,
  String? updatedBy,
  String? updatedDate,
}) => OrderedGoodsList(  branchId: branchId ?? this.branchId,
  createdBy: createdBy ?? this.createdBy,
  createdDate: createdDate ?? this.createdDate,
  goodsId: goodsId ?? this.goodsId,
  id: id ?? this.id,
  imgAttachId: imgAttachId ?? this.imgAttachId,
  isDel: isDel ?? this.isDel,
  isPackage: isPackage ?? this.isPackage,
  money: money ?? this.money,
  name: name ?? this.name,
  number: number ?? this.number,
  orderCode: orderCode ?? this.orderCode,
  orderId: orderId ?? this.orderId,
  packageDetail: packageDetail ?? this.packageDetail,
  price: price ?? this.price,
  remark: remark ?? this.remark,
  saasId: saasId ?? this.saasId,
  status: status ?? this.status,
  tenantId: tenantId ?? this.tenantId,
  updatedBy: updatedBy ?? this.updatedBy,
  updatedDate: updatedDate ?? this.updatedDate,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['branchId'] = branchId;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['goodsId'] = goodsId;
    map['id'] = id;
    map['imgAttachId'] = imgAttachId;
    map['isDel'] = isDel;
    map['isPackage'] = isPackage;
    map['money'] = money;
    map['name'] = name;
    map['num'] = number;
    map['orderCode'] = orderCode;
    map['orderId'] = orderId;
    map['packageDetail'] = packageDetail;
    map['price'] = price;
    map['remark'] = remark;
    map['saasId'] = saasId;
    map['status'] = status;
    map['tenantId'] = tenantId;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    return map;
  }

}